<?php
/**
 *
 * @license http://www.gnu.org/licenses/gpl-3.0.txt
 * @encoding UTF-8
 *
 * Copyright (c) 2011 Charly Poly <charly.poly[at]live[dot]fr>
 * Copyright (c) 2011 <Prenom Nom> <email>
 * All rights reserved.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
/**
 * Classe d'internationalisation.
 * Chaque message dynamique présent sur le site doit être définis ici
 */
class lang implements i18nInterface{
    static $inst = null;

    public function  __construct() {
    }
    public static function getInstance() {
        if (self::$inst == null) {
            return (self::$inst =new self);
        } else {
            return self::$inst;
        }
    }

    public function  __clone() {
        ;
    }
    public function SubscribeLoginPatternError() {
        return "The login must be between 3-15 alphanumeric characters, example: Foo Bar";
    }
    public function SubscribePasswordPatternError(){
        return "The password must contain at least 8 characters!";
    }
    public function SubscribeLoginDuplicateError() {
        return "This login is already used by another user!";
    }
    public function SubscribeEmailPatternError() {
        return "The email is not valid!";
    }
    public function SubscribeFatalError() {
        return "Error when registering, please try again later.";
    }
    public function SubscribeEmptyError() {
        return "The form is not filled!";
    }
    public function LoginError() {
        return "Authentication Error! Please try again.";
    }
    public function LoginEmptyError() {
        return "Please enter a login and password!";
    }
}
?>
